package chapter7.No7_6_线程组内异常处理.demo2;

/**
 * Created by Administrator on 2016/12/8.
 */
public class MyThread extends Thread {
    String str;

    public MyThread(ThreadGroup group, String name, String str) {
        super(group, name);
        this.str = str;
    }

    @Override
    public void run() {
        while(!this.isInterrupted()) {
            System.out.println("线程：" + Thread.currentThread().getName() +
                    "传入的值为：" + str + " 该值的hashCode为：" + str.hashCode());
        }
    }
}
